﻿<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  xmlns:renren="clr-namespace:Renren.Controls">

  <Style TargetType="renren:StreamBox">
    <Setter Property="Background" Value="Transparent"/>
    <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
    <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
    <Setter Property="BorderThickness" Value="0"/>
    <Setter Property="BorderBrush" Value="Transparent"/>
    <Setter Property="Padding" Value="0"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="renren:StreamBox">
          <ScrollViewer x:Name="ScrollViewer">
            <StackPanel>
              <renren:LoadingBox x:Name="HeadLoadingBox" Visibility="Visible" Margin="0,-60,0,15" State="ArrowDown" />
              <ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" />
              <ItemsPresenter />
              <renren:LoadingBox x:Name="TailLoadingBox" Visibility="Visible" State="Idle" />
            </StackPanel>
          </ScrollViewer>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

</ResourceDictionary>